<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="contextpath" value="${pageContext.request.contextPath}"></c:set>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>J2ee的自我修养</title>
    <link href="${contextpath}/css/bootstrap/bootstrap.min.css" rel="stylesheet">
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <style>
        .sidebar {
            position: fixed;
            top: 51px;
            bottom: 0;
            left: 0;
            z-index: 1000;
            display: block;
            padding: 20px;
            overflow-x: hidden;
            overflow-y: auto;
            background-color: #f5f5f5;
            border-right: 1px solid #eee;
        }
    </style>
</head>

<%
    String type = request.getParameter("type");
    System.out.println("yanglun page type:" + type);
%>
<body>
<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">Hello YangLun</a>
        </div>
        <div>
            <ul class="nav navbar-nav">
                <li
                        <c:if test="${param.type=='ios'}">
                            class="active"
                        </c:if>>
                    <a href="?type=ios">iOS</a>
                </li>
                <li
                        <c:if test="${param.type=='svn'}">
                            class="active"
                        </c:if>>
                    <a href="?type=svn">SVN</a>
                </li>

            </ul>
        </div>
    </div>

</nav>

<div class="container-fluid">
    <div class="row">
        <jsp:include page="left.jsp"></jsp:include>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <jsp:include page="/${param.type}"></jsp:include>
        </div>
    </div>
</div>
</body>
</html>